﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Speedy
{
    public class dbPromotionHeader : MasterTable
    {
        public Column code { get; set; }
        public Column name { get; set; }
        public Column type { get; set; }
        public Column discRate { get; set; }
        public Column discTotal { get; set; }
        public Column limit { get; set; }
        public Column amount { get; set; }
        public Column promoAmount { get; set; }

        public dbPromotionHeader()
        {
            this.code = new Column(typeof(int), "CODE", 4, false, true);
            this.name = new Column(typeof(string), "NAME");
            this.type = new Column(typeof(byte), "TYPE");
            this.discRate = new Column(typeof(decimal), "DISCOUNT_RATE");
            this.discTotal = new Column(typeof(decimal), "DISCOUNT_TOTAL");
            this.limit = new Column(typeof(decimal), "LIMIT");
            this.amount = new Column(typeof(decimal), "AMOUNT");
            this.promoAmount = new Column(typeof(decimal), "PROMOTION_AMOUNT");

            this.TableName = "PROMOTION_HEADER";
            this.Columns.Add(this.code);
            this.Columns.Add(this.name);
            this.Columns.Add(this.type);
            this.Columns.Add(this.discRate);
            this.Columns.Add(this.discTotal);
            this.Columns.Add(this.limit);
            this.Columns.Add(this.amount);
            this.Columns.Add(this.promoAmount);

        }
    }
}
